package org.finesys.boot.service.impl;

import lombok.RequiredArgsConstructor;
import org.finesys.system.api.service.TenantService;
import org.finesys.system.service.tenant.SysTenantService;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PathVariable;

@Service
@RequiredArgsConstructor
public class TenantServiceImpl implements TenantService {
    private final SysTenantService sysTenantService;

    /**
     * 校验租户信息是否合法
     */
    @Override
    public void validTenant(@PathVariable(value = "id") Long id) {
        sysTenantService.validTenant(id);
    }

}
